Display Unicode Symbol?

Is it possible to display a Unicode character in a richText field?

I am interested in certain symbols for which I know the two-byte Unicode character value, such as: 0x00A7 (section sign).

If I try to display a string that includes my character, such as "char c=charOf(0x00A7)", I just get a square box in my output window.

:(

 

 

 


strathglass - Tue Apr 05 15:20:17 EDT 2016

Re: Display Unicode Symbol?
DOORSHAM - Tue Apr 05 19:00:10 EDT 2016

Have you tried coping and pasting the symbol into DOORS

  § (SECTION SIGN) utf-8 character

It works here and in notepad so odds are high a copy and paste will work.

 

Tested this morning and DOORS 9.3 accepts the section sign by paste.

Re: Display Unicode Symbol?
strathglass - Wed Apr 06 07:57:57 EDT 2016

OK, thanks ... it turns out it was my editor: I tweaked my _vimrc file and was able to get it to display the characters OK.

(Yes, the symbol can be pasted into DOORS, but I need to set the value from a script...I realized the DOORS Edit DXL window supports the required characters OK!)

Re: Display Unicode Symbol?
DOORSHAM - Wed Apr 06 08:36:44 EDT 2016

strathglass - Wed Apr 06 07:57:57 EDT 2016

OK, thanks ... it turns out it was my editor: I tweaked my _vimrc file and was able to get it to display the characters OK.

(Yes, the symbol can be pasted into DOORS, but I need to set the value from a script...I realized the DOORS Edit DXL window supports the required characters OK!)

Wow you kind of sound rude.

But regardless  here is a dxl script that  shows the dxl can do the job.

 

Object o = current
o."Object Text" =  "§ Section Symbol"

Re: Display Unicode Symbol?
Costas..Aravidis - Thu Apr 07 00:24:38 EDT 2016

Hi,

 

I guess, you are talking about an attribute in DOORS and not a text field in the DXL form that you have design.

Depending on the version of DOORS that you use there are some issues. You might be seeing the character correctly in DOORS but when you export it does not show as expected.

 

The rich text field that you create with DXL in a form, it had some limitations that is not so easy to overcome. Not all the characters are displayed correctly. I had some issues before so I end up not using those characters. Those text field is difficult to display Rtf tables also that they have been pasted from word and not embedded.

 

Rtf depends somethings on the version of Windows and had changed through the years. Microsoft has discontinued Rtf, DOORS still support it but there is no development in that area.

 

So the answer to your question is that with Rtf you need to try those things to see if they work correctly in your system. Sometimes it might work in one company and not work in the other. Unicode characters might create issues and as long as you are 100% sure that works in your configuration you will be fine. When you start moving information between databases installed in different environments it might create issues.

 

Kind regards,

 

Costas